<{include file="Public/top.html" }>
<link rel="stylesheet" href="<{$preStaticUrl}>datepicker/daterangepicker.css" />
<script src="<{$preStaticUrl}>datepicker/moment.min.js"></script>
<script src="<{$preStaticUrl}>datepicker/jquery.daterangepicker.js"></script>
</head>
<body>
    <div id="warpper">
        <div class="content">
            <{include file= "Schedule/nav.html"}>
            <div class="filedSet" style="padding-bottom: 0;">
                <div class="search">
                    <form action=""  class="ui-form ">
                        <div class="ui-form-item  inline-block">
                            <label class="ui-label">选择时间</label>
                            <input type="text" name="dateRange" id="date" class="ui-text" style="width: 210px"/>
                        </div>
                        <div class="ui-form-item inline-block">
                            <label class="ui-label">推文标题</label>
                            <input type="text" name="title" class="ui-text" style="width: 210px"/>
                        </div>

                        <div class="ui-form-item inline-block">
                            <label class="ui-label">推文类型</label>
                            <select name="businessType" id="businessType" class="ui-select">
                                <option value="0">全部</option>
                                <{html_options options=$businessTypeKv }>
                            </select>
                        </div>

                        <div class="ui-form-item inline-block">
                            <label class="ui-label">内容对接</label>
                            <select name="writerName" class="ui-select">
                                <option value="">全部</option>
                                <{foreach from=$userList item=uname}>
                                <option value="<{$uname}>" ><{$uname}></option>
                                <{/foreach}>
                            </select>
                        </div>
                        <div class="ui-form-item inline-block">
                            <label class="ui-label">活动对接</label>
                            <select name="operatorName" class="ui-select">
                                <option value="">全部</option>
                                <{foreach from=$userList item=uname}>
                                <option value="<{$uname}>" ><{$uname}></option>
                                <{/foreach}>
                            </select>
                        </div>


                        <div class="ui-form-item inline-block">
                            <button type="submit" class="ui-button" onclick="LayerShow();">查询</button>
                        </div>
                    </form>
                </div>
            </div>
            <!--表格内容-->
            <div class="mainGrid" id="content">
                <{include file="Schedule/scheduleTable_list.html" }>
            </div>
            <!--描述：分页-->
            <div class="pagination">
                <{include file="Public/page.html"}>
            </div>
        </div>
    </div>
</body>
<script>
    $('#date').dateRangePicker(
            {
                startOfWeek: 'monday',
                separator : ' ~ ',
                format: 'YYYY-MM-DD',
                autoClose: true,
                time: {
                    enabled: false
                }
            });

    $('form').submit(function(){
        $.post("<{u('scheduleTable')}>",$('form').serialize(),function(html){
            LayerHide();
            $('#content').html(html);
        },'html');
        return false;

    });

</script>
<{include file="Public/foot.html" }>